package cn.smile.controller;

import cn.smile.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MaoSuyu
 * @User：John
 * @Date: 2019/5/17
 * @Time: 14:41
 * @Description: No Description
 */
@RestController
public class TestMessageConvertController {

    @RequestMapping("/testConvert")
    public User user() {
        User user = new User();
        user.setName("毛苏雨");
        user.setAge(18);
        user.setDate(new Date());
        return user;
    }
}